Repository navigation
Assemblies: edit a linked component in place, with the assembly around it (#7672) - #7819
Merged
Merged
Conversation
This was referenced Oct 27, 2026
chrishamm
force-pushed
the
edit-in-place
branch
from
October 27, 2026 19:27
f1240f6 to
86b033b
Compare
chrishamm
marked this pull request as ready for review
October 27, 2026 19:29
This was referenced Oct 27, 2026
…s away A design coming back to its tab compares the modification time and size of its linked design files with what they were when it went to the background, and runs Update Links on the worker thread for those that changed: saved in another tab, another window or by a checkout. Preference update_changed_links (Design, Linked designs) turns it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…turns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s tried again A design's linked files are now recorded as the design last read them: when Update Links reads a link without an error, or when the link is first seen. Coming back to the tab reads again what differs, one link per run, so a file that cannot be read holds up no other and is tried again the next time, and a part changed while the assembly was shown is taken up on its next return. Closing several tabs together reads nothing on the way, and the web build, which keeps no file times, looks at nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gns and missing files A tab shown to answer "save changes?" reads no link before its save, and Cancel there or on a batch lets the tab left in front read what it skipped. A design opened in place of the blank one records its links at once, a link whose file is missing is recorded as missing so it is read when the file comes back, and a read queued for a design that is no longer shown by the time it starts is dropped. More changed links than can wait at once are read on the next return. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d it Activating a linked component opens the design it comes from in a tab of its own, with the rest of the assembly drawn faded around it where the component sits, so the part's own history, browser and commands are at hand. Finish Editing in the browser saves the part, goes back to the assembly and closes the part's tab when the edit opened it; coming back to the assembly updates the changed link (or Finish Editing runs Update Links when that is turned off). Update Links in the part also reads the assembly's links again, off the window thread, and redraws the assembly around the part; a result for an assembly changed meanwhile is dropped with a message. The part is an ordinary tab, so saving, autosave, recovery, closing and quitting treat it as any other design. The model scene's ghost triangles are now drawn (only the preview's were). Preference edit_linked_in_place turns it off. Builds on the update of changed links when an assembly's tab returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A double-click on a linked component edits it in place, in the browser as on a face in the view (around the placement clicked), and the component's menu gets Edit in Place. Activate and the browser's radio button make it the active component as they always did, so a linked component can still be activated without opening its design. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ate any other A double-click on a face in the view activates the component the body belongs to, at that placement, as a double-click on its row does; a linked one is edited in place. Bodies of the design itself or of the active component are left alone, and so is a double-click with a modifier. One preference, double_click_components, covers both gestures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An edit whose part never opens is forgotten instead of starting on a later open of the same file, and the web build starts the edit after its synchronous open. Finish Editing goes on only for a save into the linked file and in the part's own tab, waits for a "changed on disk" answer, and says so when the part was saved elsewhere. Showing the assembly no longer drops a refresh, which now records the links it read so coming back reads nothing twice. The faded assembly is worked out once per picture, a bad mesh index skips its whole triangle, and the last two status texts come from the catalogs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…utton Finish Editing is a command now, component.finish_edit, with its schemas: the app window answers it, anywhere else nothing changes, as with view.fit. While a linked design is edited in place the MODEL tab ends with a FINISH EDITING panel, pinned at the right as FINISH SKETCH is, with a new left-arrow icon; the browser keeps only the line naming the assembly. The mouse's back button, or a keyboard's Back key, finishes too unless a dialog, tool or sketch is open. The assembly guide describes editing in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saving the assembly waits while it reads its links for the part Finish Editing waits for dialogs, tools, sketches and prompts open in the part, also when run as a command The assembly reads the edited part explicitly when it does not check its links on its own The FINISH EDITING panel cannot be customized A tab opened by an edit stays that edit's to close when the part is entered again The mouse's back button finishes editing; the keyboard's only while no text field has focus Refreshing the assembly keeps its selection and active component Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
component.finish_edit run as a command opens nothing and answers with an error when it cannot finish; engine.batch and engine.script refuse it A double-click or Edit in Place while a dialog, tool or sketch is open in the assembly keeps it open What changes in the assembly while it reads its links without changing its document stays: picks, activation, components dragged but not captured Showing the assembly while it reads its links starts no second read A new or opened design in the part's tab ends the edit Finish Editing keeps the part's tab open while its agent chat runs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e assembly too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…does A bare "Finish" took the catalogs' surface-finish translation (German "Oberfläche"). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Finish Edit waits while the part's agent is in the middle of its turn, instead of keeping the tab of any chat open A part saved while its assembly refreshes is read again when the edit finishes: the refresh records the files as it found them A double-click on a linked component while something is open in the assembly says so instead of activating it Commands are recognised in any spelling the engine takes, so engine.batch and engine.script cannot slip Finish Edit through Update Links run as a command refreshes the assembly from the control channel only, not for the app's own reads Moves of components the refresh removed are not carried over, and a refusal is one message The command description and the guide say that the command does not save the part Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Added component.edit_in_place {component, path?}: the double-click and Edit in Place in the menu run it, and as a command it asks nothing, so a network location not allowed yet or a design open elsewhere makes it fail instead
Finish Edit asked by the part's own agent finishes once that agent's turn ends; the button still waits for the turn
The parameters and design properties panels, with text typed and not applied yet, hold up entering and finishing an edit
A refresh is not taken up under an undo, a queued command or a feature still being computed in the assembly
Refusals say what holds them up (a refresh, a file being read or written) instead of nothing
The browser strip names the assembly that is refreshing, not any assembly
The schema description says the command does not save the part
Korean strings for every new message
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MCP batch tool refuses component.edit_in_place and component.finish_edit as steps instead of sending them one by one Edit in Place asked while the assembly's agent is in its turn opens the part once the turn ends; a double-click then is refused rather than stopping the agent Both commands answer queued: true when they wait for the agent's turn, and stopping the agent forgets what it queued An undo, a queued command or a delete check running in the design holds up entering and finishing an edit A refresh redraws every edit of the assembly, the parts in other tabs too In an assembly never saved, a double-click activates the linked component as before The control and MCP docs list the new batch and script refusals, and the commands list every way they fail Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MCP batch tool refuses the two commands however a step names them, an execute step too A queued Edit in Place is checked fully when asked for, a second one is refused, and both queued requests wait for what runs in the design instead of being dropped Disconnecting the agent forgets what it queued, as stopping it does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chrishamm
force-pushed
the
edit-in-place
branch
from
October 27, 2026 20:06
86b033b to
844c6d9
Compare
# Conflicts: # crates/ui-egui/src/browser.rs
main now requires help for every toolbar command (tangency-labs#7134), and Finish Edit is one. Written in every language the branch's catalog carries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # crates/ui-egui/src/viewport.rs
bherbruck
added this pull request to the merge queue
Oct 28, 2026
nomadsgalaxy
added a commit
to nomadsgalaxy/solidcraft
that referenced
this pull request
Oct 28, 2026
Several PRs in the merge queue touch the same lines, so this moves ours aside without changing behaviour: - history_play_button and its reset-test row sit with the other History preferences, not beside view_confirm_corner (tangency-labs#7248 adds status_bar there). - History keeps main's history_transport_width() for four controls (tangency-labs#6430 and tangency-labs#7459 call it); the Play button's count uses history_controls_width. - A new or opened document stops playback after dim_view::cancel(), clear of the line tangency-labs#7819 adds after reset_chat. - The Play/Stop label swap moves from interactive_command_info, which tangency-labs#7906 rewrites, into the ribbon's command_info.
Merged
via the queue into
tangency-labs:main
with commit Oct 28, 2026
aae2c5e
93 of 105 checks passed
Nathan-Dane
pushed a commit
to Nathan-Dane/solidcraft
that referenced
this pull request
Oct 29, 2026
…ency-labs#7853) * claim: tangency-labs#3693 * Fix timeline playback to show each rebuilt feature * Move History playback into the Inspect ribbon * Refuse Play History up front when playback couldn't run Starting Play and the per-frame check that stops it were looking at different app state, so Play could be accepted during an apply, a delete check or queued history work and then stop silently on the next frame. Both now use one playback_blocked check. The UI also reads the engine's PlaybackAction as the typed enum instead of matching strings, so a bad reply is an error rather than a quiet toggle. * Put Play History in the History controls History now shows five controls in transport order: start, previous, play, next, end. Play runs timeline.play, so it turns into Stop while playback runs, same as the ribbon button and the shortcut. It's on by default (tangency-labs#3688, tangency-labs#3740, tangency-labs#4216). Anyone who wants the old four controls back can right-click them and pick Hide Play Button, or clear history_play_button under Preferences > Interface. In a named vertical History too narrow for five buttons beside its grip, Play is left to the ribbon rather than overlapping the grip. * Draw the History Play button as a plain play/pause glyph The Play button in the History controls now uses the same drawn glyphs as its neighbours: a filled triangle, and two bars while History plays. The triangle is bigger than the step arrows so it doesn't read as Forward. The ribbon command keeps its timeline_play and timeline_stop icons. * Keep the playback changes clear of PRs queued ahead Several PRs in the merge queue touch the same lines, so this moves ours aside without changing behaviour: - history_play_button and its reset-test row sit with the other History preferences, not beside view_confirm_corner (tangency-labs#7248 adds status_bar there). - History keeps main's history_transport_width() for four controls (tangency-labs#6430 and tangency-labs#7459 call it); the Play button's count uses history_controls_width. - A new or opened document stops playback after dim_view::cancel(), clear of the line tangency-labs#7819 adds after reset_chat. - The Play/Stop label swap moves from interactive_command_info, which tangency-labs#7906 rewrites, into the ribbon's command_info. * Stop playback after the command completes, clear of tangency-labs#6433 tangency-labs#6433 rewrites the session.execute line in execute_command, and our playback check sat right under it, so the queue couldn't merge the two. Checking the revision after command_completed does the same job a couple of lines later. --------- Co-authored-by: cfaulkingham <colin.faulkingham@gmail.com>
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
A part linked into an assembly can only be changed in its own design, which opens on its own with nothing around it. Fitting it to the parts next to it meant switching back and forth between the two tabs.
Double-clicking a linked component, in the browser or on one of its faces, now opens its design in a tab of its own with the rest of the assembly drawn faded around it, placed as that occurrence is. The browser says which assembly the part is edited in, and the Model tab ends with Finish Edit (the mouse's back button does the same). Finish Edit saves the part, goes back to the assembly's tab, closes the part's tab if the edit opened it, and the assembly reads the changed part again. Update Links pressed in the part also reads the assembly's links again, off the window thread, and redraws what is around the part. The assembly isn't saved while that read runs. Double-clicking a component that isn't linked activates it, Activate itself still only activates, and the context menu gets Edit in Place.
Both steps are commands,
component.edit_in_place {component, path?}andcomponent.finish_edit, and the double-click and the menu run the first. Run as commands they open nothing: a part with unsaved changes, a network location not allowed yet or a design open in another SolidCraft makes them fail instead of asking. Asked while that design's agent is in its turn, they wait for the turn to end (queued: true), so the agent isn't stopped by its own tab switch.engine.batch,engine.scriptand the MCPbatchtool refuse both, since the steps after them would land in the other design.This builds on #7622, whose tab-return update reads the saved part when Finish Edit goes back to the assembly; with that preference off, Finish Edit asks for the update itself. The first commits here are #7622's until it merges.
Closes #7672
Also covers #6513: a component opens from the assembly's context menu or by double-clicking it, and the assembly updates to its saved changes. Together with #5113 and #7622 it answers the open question on #2310 about what a separate parts and assemblies workflow still lacks.
Changes a default: yes - double-clicking a component edits a linked one in place and activates any other (Preferences, Design, "Double-click a component to activate it, or to edit a linked one in place"), old behaviour kept behind preference double_click_components
Open points: the faded assembly is taken on the window thread when the edit starts, which takes a moment in a very large assembly. The refresh from the part doesn't ask about network locations that aren't allowed yet. There is no Cancel next to Finish Edit; closing the part's tab asks about its changes as usual.
Validation
On Linux: 42 tests in
edit_in_place_tests.rscover entering by double-click, menu and command, Finish Edit with and without changes, the agent's turn, a part saved during the assembly's refresh, Update Links in the part from the button and as a command, changes made in the assembly while it reads its links, the save refused during that read, the batch and script refusals, the ribbon button, the mouse back button and the preference turned off; the MCP tests cover the batch refusal.cargo xtask cipasses fmt, clippy, lists, layers and the engine, doc, kernel, MCP, scenario and action-matrix tests, and every ui-egui test apart fromprogressive_image_controls_route_to_the_registered_host, which also fails on an unchangedmain; thegpupath tracer and depth tests fail on this machine's Radeon iGPU, which this doesn't touch. The wasm check couldn't run here for lack of the target. Clicked through in a release build with the demo assembly below. Not run on Windows or macOS.Screenshots of the behavior (when observable)
The demo assembly from #7622: a base plate with a post and a knob, each a linked design. Double-clicking the post opens it with the base and knob faded around it. Made thicker there, the post is saved by Finish Edit, its tab closes and the assembly shows the thicker post. Last, the new setting under Preferences, Design.
Integration status
Based on 4afd933 through #7622 (5ceadcf). No other open PR works on editing linked components.